<?php

/*
 * 微商成父控制器
 * @author <!-- blakefan 1621743934@qq.com -->
 * 
 */

namespace Home\Controller;
use Think\Controller;
class HomeController extends Controller
{
    /*
	 *初始化,检测是否登录
	 */
	public function _initialize(){
		// 获取当前用户ID
        define('UID',is_login());
        if(!UID) $this->redirect('Login/index');
       
	}
}